[INFO] cloning repository https://github.com/snakedye/midle
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/snakedye/midle" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsnakedye%2Fmidle", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsnakedye%2Fmidle'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 8f9224ada9141bd93baef9b5aa8af4a1cccded24
[INFO] fixing snakedye/midle against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsnakedye%2Fmidle" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/snakedye/midle
[INFO] finished tweaking git repo https://github.com/snakedye/midle
[INFO] tweaked toml for git repo https://github.com/snakedye/midle written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/snakedye/midle on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/snakedye/midle already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded wayland-scanner v0.28.5
[INFO] [stderr]   Downloaded proc-macro2 v1.0.27
[INFO] [stderr]   Downloaded wayland-commons v0.28.5
[INFO] [stderr]   Downloaded xml-rs v0.8.3
[INFO] [stderr]   Downloaded wayland-sys v0.28.5
[INFO] [stderr]   Downloaded once_cell v1.7.2
[INFO] [stderr]   Downloaded cc v1.0.68
[INFO] [stderr]   Downloaded wayland-client v0.28.5
[INFO] [stderr]   Downloaded wayland-protocols v0.28.5
[INFO] [stderr]   Downloaded nix v0.20.0
[INFO] [stderr]   Downloaded libc v0.2.95
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 337d8fb14f37a355b29184270a3781f4036c7a056797ab555e9b1e5847f2e1dd
[INFO] running `Command { std: "docker" "start" "337d8fb14f37a355b29184270a3781f4036c7a056797ab555e9b1e5847f2e1dd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "337d8fb14f37a355b29184270a3781f4036c7a056797ab555e9b1e5847f2e1dd" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "337d8fb14f37a355b29184270a3781f4036c7a056797ab555e9b1e5847f2e1dd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "337d8fb14f37a355b29184270a3781f4036c7a056797ab555e9b1e5847f2e1dd" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.27
[INFO] [stderr]    Compiling unicode-xid v0.2.2
[INFO] [stderr]    Compiling xml-rs v0.8.3
[INFO] [stderr]    Compiling bitflags v1.2.1
[INFO] [stderr]    Compiling pkg-config v0.3.19
[INFO] [stderr]    Compiling libc v0.2.95
[INFO] [stderr]     Checking smallvec v1.6.1
[INFO] [stderr]     Checking once_cell v1.7.2
[INFO] [stderr]     Checking downcast-rs v1.2.0
[INFO] [stderr]    Compiling wayland-sys v0.28.5
[INFO] [stderr]    Compiling quote v1.0.9
[INFO] [stderr]    Compiling wayland-scanner v0.28.5
[INFO] [stderr]     Checking nix v0.20.0
[INFO] [stderr]    Compiling wayland-protocols v0.28.5
[INFO] [stderr]    Compiling wayland-client v0.28.5
[INFO] [stderr]    Compiling midle v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking wayland-commons v0.28.5
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:5032
[INFO] [stdout]   |
[INFO] [stdout] 1 | ... * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (&...
[INFO] [stdout]   |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]   = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { &raw const org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:5613
[INFO] [stdout]   |
[INFO] [stdout] 1 | ...[unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super...
[INFO] [stdout]   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { &raw const super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:5726
[INFO] [stdout]   |
[INFO] [stdout] 1 | ...t wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,]...
[INFO] [stdout]   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { &raw const super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:6121
[INFO] [stdout]   |
[INFO] [stdout] 1 | ...ar , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of ...
[INFO] [stdout]   |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { &raw const org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:6452
[INFO] [stdout]   |
[INFO] [stdout] 1 | ..._count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_me...
[INFO] [stdout]   |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { &raw const org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:11698
[INFO] [stdout]   |
[INFO] [stdout] 1 | ...onst wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeou...
[INFO] [stdout]   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { &raw const org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:13019
[INFO] [stdout]   |
[INFO] [stdout] 1 | ... u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * co...
[INFO] [stdout]   |                                             ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { &raw const types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:13204
[INFO] [stdout]   |
[INFO] [stdout] 1 | ... u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this...
[INFO] [stdout]   |                                             ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { &raw const types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:13522
[INFO] [stdout]   |
[INFO] [stdout] 1 | ... u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * con...
[INFO] [stdout]   |                                             ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { &raw const types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:13692
[INFO] [stdout]   |
[INFO] [stdout] 1 | ... u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for ...
[INFO] [stdout]   |                                             ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { &raw const types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:14000
[INFO] [stdout]   |
[INFO] [stdout] 1 | ...nt : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_k...
[INFO] [stdout]   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { &raw const org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:14090
[INFO] [stdout]   |
[INFO] [stdout] 1 | ...count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { &raw const org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:5032
[INFO] [stdout]   |
[INFO] [stdout] 1 | ... * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (&...
[INFO] [stdout]   |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]   = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { &raw const org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:5613
[INFO] [stdout]   |
[INFO] [stdout] 1 | ...[unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super...
[INFO] [stdout]   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { &raw const super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:5726
[INFO] [stdout]   |
[INFO] [stdout] 1 | ...t wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,]...
[INFO] [stdout]   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { &raw const super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:6121
[INFO] [stdout]   |
[INFO] [stdout] 1 | ...ar , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of ...
[INFO] [stdout]   |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { &raw const org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:6452
[INFO] [stdout]   |
[INFO] [stdout] 1 | ..._count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_me...
[INFO] [stdout]   |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { &raw const org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:11698
[INFO] [stdout]   |
[INFO] [stdout] 1 | ...onst wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeou...
[INFO] [stdout]   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { &raw const org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:13019
[INFO] [stdout]   |
[INFO] [stdout] 1 | ... u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * co...
[INFO] [stdout]   |                                             ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { &raw const types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:13204
[INFO] [stdout]   |
[INFO] [stdout] 1 | ... u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this...
[INFO] [stdout]   |                                             ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { &raw const types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:13522
[INFO] [stdout]   |
[INFO] [stdout] 1 | ... u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * con...
[INFO] [stdout]   |                                             ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { &raw const types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:13692
[INFO] [stdout]   |
[INFO] [stdout] 1 | ... u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for ...
[INFO] [stdout]   |                                             ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { &raw const types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:14000
[INFO] [stdout]   |
[INFO] [stdout] 1 | ...nt : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_k...
[INFO] [stdout]   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { &raw const org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> /opt/rustwide/workdir/src/wayland/idle.rs:1:14090
[INFO] [stdout]   |
[INFO] [stdout] 1 | ...count : 2 , events : unsafe { & org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std :: os :: raw :: { c_char , c_void } ; const NULLPTR : * const c_void = 0 as * const c_void ; static mut types_null : [* const sys :: common :: wl_interface ; 0] = [] ; # [doc = "User idle time manager\n\nThis interface allows to monitor user idle time on a given seat. The interface\nallows to register timers which trigger after no user activity was registered\non the seat for a given interval. It notifies when user activity resumes.\n\nThis is useful for applications wanting to perform actions when the user is not\ninteracting with the system, e.g. chat applications setting the user as away, power\nmanagement features to dim screen, etc.."] pub mod org_kde_kwin_idle { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = ""] GetIdleTimeout { seat : super :: wl_seat :: WlSeat , timeout : u32 , } , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "get_idle_timeout" , since : 1 , signature : & [super :: ArgumentType :: NewId , super :: ArgumentType :: Object , super :: ArgumentType :: Uint ,] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: GetIdleTimeout { .. } => 0 , } } fn since (& self) -> u32 { match * self { Request :: GetIdleTimeout { .. } => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { 0 => Some (Object :: from_interface :: < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > (version , meta . child () ,)) , _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: GetIdleTimeout { seat , timeout } => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [Argument :: NewId (0) , Argument :: Object (seat . as_ref () . id ()) , Argument :: Uint (timeout) ,] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: GetIdleTimeout { seat , timeout } => { let mut _args_array : [wl_argument ; 3] = unsafe { :: std :: mem :: zeroed () } ; _args_array [0] . o = :: std :: ptr :: null_mut () as * mut _ ; _args_array [1] . o = seat . as_ref () . c_ptr () as * mut _ ; _args_array [2] . u = timeout ; f (0 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { } } fn opcode (& self) -> u16 { match * self { } } fn since (& self) -> u32 { match * self { } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdle (Proxy < OrgKdeKwinIdle >) ; impl AsRef < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdle >> for OrgKdeKwinIdle { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdle (value) } } impl From < OrgKdeKwinIdle > for Proxy < OrgKdeKwinIdle > { # [inline] fn from (value : OrgKdeKwinIdle) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdle { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdle { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_interface } } } impl OrgKdeKwinIdle { # [doc = ""] pub fn get_idle_timeout (& self , seat : & super :: wl_seat :: WlSeat , timeout : u32) -> Main < super :: org_kde_kwin_idle_timeout :: OrgKdeKwinIdleTimeout > { let msg = Request :: GetIdleTimeout { seat : seat . clone () , timeout : timeout } ; self . 0 . send (msg , None) . unwrap () } } # [doc = r" The minimal object version supporting this request"] pub const REQ_GET_IDLE_TIMEOUT_SINCE : u32 = 1u32 ; static mut org_kde_kwin_idle_requests_get_idle_timeout_types : [* const wl_interface ; 3] = [unsafe { & super :: org_kde_kwin_idle_timeout :: org_kde_kwin_idle_timeout_interface as * const wl_interface } , unsafe { & super :: wl_seat :: wl_seat_interface as * const wl_interface } , NULLPTR as * const wl_interface ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_requests : [wl_message ; 1] = [wl_message { name : b"get_idle_timeout\0" as * const u8 as * const c_char , signature : b"nou\0" as * const u8 as * const c_char , types : unsafe { & org_kde_kwin_idle_requests_get_idle_timeout_types as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle\0" as * const u8 as * const c_char , version : 1 , request_count : 1 , requests : unsafe { & org_kde_kwin_idle_requests as * const _ } , event_count : 0 , events : NULLPTR as * const wl_message , } ; } pub mod org_kde_kwin_idle_timeout { use std :: os :: raw :: c_char ; use super :: { Proxy , AnonymousObject , Interface , MessageGroup , MessageDesc , ArgumentType , Object , Message , Argument , ObjectMetadata , types_null , NULLPTR , Main , smallvec , } ; use super :: sys :: common :: { wl_interface , wl_array , wl_argument , wl_message } ; use super :: sys :: client :: * ; # [derive (Debug)] # [non_exhaustive] pub enum Request { # [doc = "release the timeout object\n\n\n\nThis is a destructor, once sent this object cannot be used any longer."] Release , # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] SimulateUserActivity , } impl super :: MessageGroup for Request { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "release" , since : 1 , signature : & [] , destructor : true , } , super :: MessageDesc { name : "simulate_user_activity" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { Request :: Release => true , _ => false , } } fn opcode (& self) -> u16 { match * self { Request :: Release => 0 , Request :: SimulateUserActivity => 1 , } } fn since (& self) -> u32 { match * self { Request :: Release => 1 , Request :: SimulateUserActivity => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { panic ! ("Request::from_raw can not be used Client-side.") } fn into_raw (self , sender_id : u32) -> Message { match self { Request :: Release => Message { sender_id : sender_id , opcode : 0 , args : smallvec ! [] , } , Request :: SimulateUserActivity => Message { sender_id : sender_id , opcode : 1 , args : smallvec ! [] , } , } } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Request , () > { panic ! ("Request::from_raw_c can not be used Client-side.") } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { match self { Request :: Release => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (0 , & mut _args_array) } , Request :: SimulateUserActivity => { let mut _args_array : [wl_argument ; 0] = unsafe { :: std :: mem :: zeroed () } ; f (1 , & mut _args_array) } , } } } # [derive (Debug)] # [non_exhaustive] pub enum Event { # [doc = "Triggered when there has not been any user activity in the requested idle time interval"] Idle , # [doc = "Triggered on the first user activity after an idle event"] Resumed , } impl super :: MessageGroup for Event { const MESSAGES : & 'static [super :: MessageDesc] = & [super :: MessageDesc { name : "idle" , since : 1 , signature : & [] , destructor : false , } , super :: MessageDesc { name : "resumed" , since : 1 , signature : & [] , destructor : false , } ,] ; type Map = super :: ProxyMap ; fn is_destructor (& self) -> bool { match * self { _ => false , } } fn opcode (& self) -> u16 { match * self { Event :: Idle => 0 , Event :: Resumed => 1 , } } fn since (& self) -> u32 { match * self { Event :: Idle => 1 , Event :: Resumed => 1 , } } fn child < Meta : ObjectMetadata > (opcode : u16 , version : u32 , meta : & Meta) -> Option < Object < Meta >> { match opcode { _ => None , } } fn from_raw (msg : Message , map : & mut Self :: Map) -> Result < Self , () > { match msg . opcode { 0 => Ok (Event :: Idle) , 1 => Ok (Event :: Resumed) , _ => Err (()) , } } fn into_raw (self , sender_id : u32) -> Message { panic ! ("Event::into_raw can not be used Client-side.") } unsafe fn from_raw_c (obj : * mut :: std :: os :: raw :: c_void , opcode : u32 , args : * const wl_argument ,) -> Result < Event , () > { match opcode { 0 => { Ok (Event :: Idle) } , 1 => { Ok (Event :: Resumed) } , _ => return Err (()) , } } fn as_raw_c_in < F , T > (self , f : F) -> T where F : FnOnce (u32 , & mut [wl_argument]) -> T { panic ! ("Event::as_raw_c_in can not be used Client-side.") } } # [derive (Clone , Eq , PartialEq)] pub struct OrgKdeKwinIdleTimeout (Proxy < OrgKdeKwinIdleTimeout >) ; impl AsRef < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn as_ref (& self) -> & Proxy < Self > { & self . 0 } } impl From < Proxy < OrgKdeKwinIdleTimeout >> for OrgKdeKwinIdleTimeout { # [inline] fn from (value : Proxy < Self >) -> Self { OrgKdeKwinIdleTimeout (value) } } impl From < OrgKdeKwinIdleTimeout > for Proxy < OrgKdeKwinIdleTimeout > { # [inline] fn from (value : OrgKdeKwinIdleTimeout) -> Self { value . 0 } } impl std :: fmt :: Debug for OrgKdeKwinIdleTimeout { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { f . write_fmt (format_args ! ("{:?}" , self . 0)) } } impl Interface for OrgKdeKwinIdleTimeout { type Request = Request ; type Event = Event ; const NAME : & 'static str = "org_kde_kwin_idle_timeout" ; const VERSION : u32 = 1 ; fn c_interface () -> * const wl_interface { unsafe { & org_kde_kwin_idle_timeout_interface } } } impl OrgKdeKwinIdleTimeout { # [doc = "release the timeout object\n\n\n\nThis is a destructor, you cannot send requests to this object any longer once this method is called."] pub fn release (& self ,) -> () { let msg = Request :: Release ; self . 0 . send :: < AnonymousObject > (msg , None) ; } # [doc = "Simulates user activity for this timeout, behaves just like real user activity on the seat"] pub fn simulate_user_activity (& self ,) -> () { let msg = Request :: SimulateUserActivity ; self . 0 . send :: < AnonymousObject > (msg , None) ; } } # [doc = r" The minimal object version supporting this request"] pub const REQ_RELEASE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this request"] pub const REQ_SIMULATE_USER_ACTIVITY_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_IDLE_SINCE : u32 = 1u32 ; # [doc = r" The minimal object version supporting this event"] pub const EVT_RESUMED_SINCE : u32 = 1u32 ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_requests : [wl_message ; 2] = [wl_message { name : b"release\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"simulate_user_activity\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C-representation of the messages of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_events : [wl_message ; 2] = [wl_message { name : b"idle\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } , wl_message { name : b"resumed\0" as * const u8 as * const c_char , signature : b"\0" as * const u8 as * const c_char , types : unsafe { & types_null as * const _ } , } ,] ; # [doc = r" C representation of this interface, for interop"] pub static mut org_kde_kwin_idle_timeout_interface : wl_interface = wl_interface { name : b"org_kde_kwin_idle_timeout\0" as * const u8 as * const c_char , version : 1 , request_count : 2 , requests : unsafe { & org_kde_kwin_idle_timeout_requests as * const _ } , event_count : 2 , events : unsafe { &raw const org_kde_kwin_idle_timeout_events as * const _ } , } ; }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.69s
[INFO] [stderr] crater-edition-check: all finished
[INFO] running `Command { std: "docker" "inspect" "337d8fb14f37a355b29184270a3781f4036c7a056797ab555e9b1e5847f2e1dd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "337d8fb14f37a355b29184270a3781f4036c7a056797ab555e9b1e5847f2e1dd", kill_on_drop: false }`
[INFO] [stdout] 337d8fb14f37a355b29184270a3781f4036c7a056797ab555e9b1e5847f2e1dd
